using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class DelChatRoomMemberResponse : GeneratedMessageLite<DelChatRoomMemberResponse, DelChatRoomMemberResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<DelChatRoomMemberResponse, DelChatRoomMemberResponse.Builder>
		{
			private bool resultIsReadOnly;
			private DelChatRoomMemberResponse result;
			protected override DelChatRoomMemberResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override DelChatRoomMemberResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override DelChatRoomMemberResponse DefaultInstanceForType
			{
				get
				{
					return DelChatRoomMemberResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint MemberCount
			{
				get
				{
					return this.result.MemberCount;
				}
				set
				{
					this.SetMemberCount(value);
				}
			}
			public IPopsicleList<DelMemberResp> MemberListList
			{
				get
				{
					return this.PrepareBuilder().memberList_;
				}
			}
			public int MemberListCount
			{
				get
				{
					return this.result.MemberListCount;
				}
			}
			public Builder()
			{
				this.result = DelChatRoomMemberResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(DelChatRoomMemberResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private DelChatRoomMemberResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					DelChatRoomMemberResponse other = this.result;
					this.result = new DelChatRoomMemberResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override DelChatRoomMemberResponse.Builder Clear()
			{
				this.result = DelChatRoomMemberResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override DelChatRoomMemberResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new DelChatRoomMemberResponse.Builder(this.result);
				}
				return new DelChatRoomMemberResponse.Builder().MergeFrom(this.result);
			}
			public override DelChatRoomMemberResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override DelChatRoomMemberResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is DelChatRoomMemberResponse)
				{
					return this.MergeFrom((DelChatRoomMemberResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override DelChatRoomMemberResponse.Builder MergeFrom(DelChatRoomMemberResponse other)
			{
				return this;
			}
			public override DelChatRoomMemberResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override DelChatRoomMemberResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(DelChatRoomMemberResponse._delChatRoomMemberResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = DelChatRoomMemberResponse._delChatRoomMemberResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasMemberCount = input.ReadUInt32(ref this.result.memberCount_);
							continue;
						}
						if (num3 == 26u)
						{
							input.ReadMessageArray<DelMemberResp>(num, text, this.result.memberList_, DelMemberResp.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public DelChatRoomMemberResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public DelChatRoomMemberResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public DelChatRoomMemberResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public DelChatRoomMemberResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public DelChatRoomMemberResponse.Builder SetMemberCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMemberCount = true;
				this.result.memberCount_ = value;
				return this;
			}
			public DelChatRoomMemberResponse.Builder ClearMemberCount()
			{
				this.PrepareBuilder();
				this.result.hasMemberCount = false;
				this.result.memberCount_ = 0u;
				return this;
			}
			public DelMemberResp GetMemberList(int index)
			{
				return this.result.GetMemberList(index);
			}
			public DelChatRoomMemberResponse.Builder SetMemberList(int index, DelMemberResp value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.memberList_[index] = value;
				return this;
			}
			public DelChatRoomMemberResponse.Builder SetMemberList(int index, DelMemberResp.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.memberList_[index] = builderForValue.Build();
				return this;
			}
			public DelChatRoomMemberResponse.Builder AddMemberList(DelMemberResp value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.memberList_.Add(value);
				return this;
			}
			public DelChatRoomMemberResponse.Builder AddMemberList(DelMemberResp.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.memberList_.Add(builderForValue.Build());
				return this;
			}
			public DelChatRoomMemberResponse.Builder AddRangeMemberList(IEnumerable<DelMemberResp> values)
			{
				this.PrepareBuilder();
				this.result.memberList_.Add(values);
				return this;
			}
			public DelChatRoomMemberResponse.Builder ClearMemberList()
			{
				this.PrepareBuilder();
				this.result.memberList_.Clear();
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int MemberCountFieldNumber = 2;
		public const int MemberListFieldNumber = 3;
		private static readonly DelChatRoomMemberResponse defaultInstance;
		private static readonly string[] _delChatRoomMemberResponseFieldNames;
		private static readonly uint[] _delChatRoomMemberResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasMemberCount;
		private uint memberCount_;
		private PopsicleList<DelMemberResp> memberList_ = new PopsicleList<DelMemberResp>();
		private int memoizedSerializedSize = -1;
		public static DelChatRoomMemberResponse DefaultInstance
		{
			get
			{
				return DelChatRoomMemberResponse.defaultInstance;
			}
		}
		public override DelChatRoomMemberResponse DefaultInstanceForType
		{
			get
			{
				return DelChatRoomMemberResponse.DefaultInstance;
			}
		}
		protected override DelChatRoomMemberResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint MemberCount
		{
			get
			{
				return this.memberCount_;
			}
		}
		public IList<DelMemberResp> MemberListList
		{
			get
			{
				return this.memberList_;
			}
		}
		public int MemberListCount
		{
			get
			{
				return this.memberList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseResponse)
				{
					return false;
				}
				if (!this.hasMemberCount)
				{
					return false;
				}
				if (!this.BaseResponse.IsInitialized)
				{
					return false;
				}
				bool result;
				using (IEnumerator<DelMemberResp> enumerator = this.MemberListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						DelMemberResp current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							result = false;
							return result;
						}
					}
					return true;
				}
				return result;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasMemberCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.MemberCount);
				}
				using (IEnumerator<DelMemberResp> enumerator = this.MemberListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						DelMemberResp current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(3, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private DelChatRoomMemberResponse()
		{
		}
		public DelMemberResp GetMemberList(int index)
		{
			return this.memberList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] delChatRoomMemberResponseFieldNames = DelChatRoomMemberResponse._delChatRoomMemberResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, delChatRoomMemberResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasMemberCount)
			{
				output.WriteUInt32(2, delChatRoomMemberResponseFieldNames[1], this.MemberCount);
			}
			if (this.memberList_.Count > 0)
			{
				output.WriteMessageArray<DelMemberResp>(3, delChatRoomMemberResponseFieldNames[2], this.memberList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasMemberCount)
			{
				num ^= this.memberCount_.GetHashCode();
			}
			using (IEnumerator<DelMemberResp> enumerator = this.memberList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					DelMemberResp current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object value)
		{
			DelChatRoomMemberResponse delChatRoomMemberResponse = value as DelChatRoomMemberResponse;
			if (delChatRoomMemberResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != delChatRoomMemberResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(delChatRoomMemberResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasMemberCount != delChatRoomMemberResponse.hasMemberCount || (this.hasMemberCount && !this.memberCount_.Equals(delChatRoomMemberResponse.memberCount_)))
			{
				return false;
			}
			if (this.memberList_.Count != delChatRoomMemberResponse.memberList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.memberList_.Count; i++)
			{
				if (!this.memberList_[i].Equals(delChatRoomMemberResponse.memberList_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<DelChatRoomMemberResponse, DelChatRoomMemberResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<DelChatRoomMemberResponse, DelChatRoomMemberResponse.Builder>.PrintField("MemberCount", this.hasMemberCount, this.memberCount_, writer);
			GeneratedMessageLite<DelChatRoomMemberResponse, DelChatRoomMemberResponse.Builder>.PrintField<DelMemberResp>("MemberList", this.memberList_, writer);
		}
		public static DelChatRoomMemberResponse ParseFrom(byte[] data)
		{
			return DelChatRoomMemberResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private DelChatRoomMemberResponse MakeReadOnly()
		{
			this.memberList_.MakeReadOnly();
			return this;
		}
		public static DelChatRoomMemberResponse.Builder CreateBuilder()
		{
			return new DelChatRoomMemberResponse.Builder();
		}
		public override DelChatRoomMemberResponse.Builder ToBuilder()
		{
			return DelChatRoomMemberResponse.CreateBuilder(this);
		}
		public override DelChatRoomMemberResponse.Builder CreateBuilderForType()
		{
			return new DelChatRoomMemberResponse.Builder();
		}
		public static DelChatRoomMemberResponse.Builder CreateBuilder(DelChatRoomMemberResponse prototype)
		{
			return new DelChatRoomMemberResponse.Builder(prototype);
		}
		static DelChatRoomMemberResponse()
		{
			DelChatRoomMemberResponse.defaultInstance = new DelChatRoomMemberResponse().MakeReadOnly();
			DelChatRoomMemberResponse._delChatRoomMemberResponseFieldNames = new string[]
			{
				"BaseResponse",
				"MemberCount",
				"MemberList"
			};
			DelChatRoomMemberResponse._delChatRoomMemberResponseFieldTags = new uint[]
			{
				10u,
				16u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.DelChatRoomMemberResponse.Descriptor, null);
		}
	}
}
